package com.itheima.d1_polymorphism;


//工人类
public class Worker extends People {

    //方法重写
    @Override
    public void eat() {
        System.out.println("工人类中的eat方法");
    }
}
